<template>
  <div>
    <router-view v-slot="{ Component }">
      <keep-alive>
        <component class="view" :is="Component" />
      </keep-alive>
    </router-view>
  </div>
</template>
<script>
import { provide } from 'vue'
import * as echarts from 'echarts'
export default{
  name:'App',
  setup(){
    provide('ec',echarts)
  },
}  
  
</script>